From a6dc50db845addabaf80370318074ad893495bbd Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 21 Jan 2003 14:13:26 +0000 Subject: [PATCH] Zero our allocated struct. --- mkshort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkshort.c b/mkshort.c index 9abf9e09c..64d17d91f 100644 --- a/mkshort.c +++ b/mkshort.c @@ -65,7 +65,7 @@ mkshort_add_to_list(mkshort_handle *h, char *name) { queue *e, *t; int hash; - uniq_shortname *s = xmalloc(sizeof (uniq_shortname)); + uniq_shortname *s = xcalloc(1, sizeof (uniq_shortname)); s->orig_shortname = strdup(name); hash = hash_string(name); -- 2.30.2